<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>栏目列表</title>
	<hdjs/>
</head>
<body>
	<div class="wrap">
				<div class="menu_list">
					<ul>
						<li>
							<a href="javascript:;" class="action">
								商品栏目
							</a>
						</li>
						<li>
							<a href="{|U:'add'}">
								添加栏目
							</a>
						</li>
						<li>
							<a href="javascript:hd_ajax('{|U:updateCache}')">
								更新缓存
							</a>
						</li>
					</ul>
				</div>
				<table class="table2 hd-form">
					<thead>
						<tr>
							<td class="w30">cid</td>
							<td>栏目名称</td>
							<td class="w150">操作</td>
						</tr>
					</thead>
					<list from="$data" name="d">
						<tr>
							<td>{$d.cid}</td>
							<td>{$d._name}</td>
							<td>
								<a href="{|U:'edit',array('cid'=>$d['cid'])}">修改</a> |
								<a href="javascript:if(confirm('删除栏目前确实是否还有商品?确认要删除吗？'))location='{|U:'del',array('cid'=>$d['cid'])}'">删除</a> |  
								<a href="{|U:'add',array('pid'=>$d['cid'])}">添加子栏目</a>
							</td>
						</tr>
					</list>
				</table>
		</div>
		
</body>
</html>